<table border="1" width="500px" height="500px">

<?php
		$rijen = $_POST['rijen'];
		$kolommen = $_POST['kolommen'];
		
		$teller_r = 0;
		while ($teller_r < $rijen) {
			echo "<tr>";
			$teller_k = 0;
			while ($teller_k < $kolommen) {
			
				if ( $teller_r == 0 ) {
					echo "<td>".$teller_k."</td>";				
				} 
				else if ( $teller_k == 0) {
					echo "<td>".$teller_r."</td>";				
				}
				else {
				    $product = $teller_r * $teller_k;
					
					if ($product % 2 == 0) {
						echo "<td>".$product."</td>";
					}
					else {
						echo "<td class='oneven' >".$product."</td>";
					}
					
				}
				$teller_k++;
			}
			echo "</tr>";
			$teller_r++;
		}
?>
</table>

<!--
<table border="1" width="500px" height="500px">

	<tr>
		<td></td>
		<td></td>
		<td></td>
		<td></td>
		<td></td>
	</tr>

	<tr>
		<td></td>
		<td></td>
		<td></td>
		<td></td>
		<td></td>
	</tr>

	<tr>
		<td></td>
		<td></td>
		<td></td>
		<td></td>
		<td></td>
	</tr>


</table>
-->